package znbkTestPaperLstjt.api;

import com.example.lancooznbk.service.HttpGetServer;
import com.example.lancooznbk.service.HttpPostServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperLstjt.ZnbkPaperLstjtInfor;
import znbkTestPaperLstjt.entity.HistoryRecommendQuesPaperEntity;

/**
 * Created by Administrator on 2018\4\9 0009.
 */

public class HistoryRecommendQuesPaperApi extends BaseApi {

    public HistoryRecommendQuesPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getLSRecQues(UserInfo.StuId,UserInfo.SubjectId,UserInfo.StageNo, ZnbkPaperLstjtInfor.QuesID);
    }
}